package com.ktjy.sample.dao;

import com.ktjy.sample.entity.Pet;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

@Resource(lookup = "petDaoMySql")
public class PetDaoMySqlImpl implements PetDao{
    @Override
    public int insert(Pet pet) {
        System.out.println("将宠物"+pet.getName()+"插入Mysql数据库");
        return 1;
    }
}
